<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<style>
    .masked{
        text-align: center;
        background-image: -webkit-linear-gradient(left, #147B96, #E6D205 25%, #147B96 50%, #E6D205 75%, #147B96);
        -webkit-text-fill-color: transparent;
        -webkit-background-clip: text;
        -webkit-background-size: 200% 100%;
        -webkit-animation: masked-animation 4s infinite linear;
    }
    @-webkit-keyframes masked-animation {
        0%{ background-position: 0 0;}
        100% { background-position: -100% 0;}
    }
</style>
<div class="masked" >
    <h1>→css3文字渐变动画效果 >></h1>
</div>
</body>
</html>
<div class="carousel-inner" role="listbox">
    <div class="item active">
        <a href="">
            <img src="${pageContext.request.contextPath}/static/home/images/banner1.png" alt="banner1" style="width: 627px;height: 270px">
        </a>
    </div>
    <div class="item">
        <a href="">
            <img src="${pageContext.request.contextPath}/static/home/images/banner2.png" alt="banner2" style="width: 627px;height: 270px">
        </a>
    </div>
    <div class="item">
        <a href="">
            <img src="${pageContext.request.contextPath}/static/home/images/banner3.png" alt="banner3" style="width: 627px;height: 270px">
        </a>
    </div>
</div>